
package com.shop.cloud.mall.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;
import java.util.List;

import io.swagger.v3.oas.annotations.media.Schema;

/**
 * 运费模板
 *
 * @author
 * @date 2019-12-24 16:09:31
 */
@Data
@TableName("freight_templat")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "运费模板")
public class FreightTemplat extends Model<FreightTemplat> {
    private static final long serialVersionUID=1L;

    /**
     * PK
     */
	@Schema(description = "PK")
    @TableId(type = IdType.ASSIGN_ID)
    private String id;
    /**
     * 所属租户
     */
	@Schema(description = "所属租户")
    private String tenantId;
    /**
     * 所属类型：1：店铺；2：供应商
     */
    @Schema(description = "类型：1：店铺；2：供应商")
    private String ofType;
	/**
	 * 店铺Id或供应商Id
	 */
	@Schema(description = "店铺Id或供应商Id")
	private String shopId;
    /**
     * 逻辑删除标记（0：显示；1：隐藏）
     */
	@Schema(description = "逻辑删除标记")
    private String delFlag;
    /**
     * 创建时间
     */
	@Schema(description = "创建时间")
    private LocalDateTime createTime;
    /**
     * 最后更新时间
     */
	@Schema(description = "最后更新时间")
    private LocalDateTime updateTime;
    /**
     * 排序字段
     */
	@Schema(description = "排序字段")
    private Integer sort;
    /**
     * 名称
     */
	@Schema(description = "名称")
    private String name;
    /**
     * 计费方式1、按件数；2、按重量；3、按体积
     */
	@Schema(description = "计费方式1、按件数；2、按重量；3、按体积")
    private String chargeType;

    @TableField(exist = false)
    @Schema(description = "运费模板规则集合")
    private List<FreightTemplatCharge> freightTemplatChargeList;
}
